using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;
using ICalendar.CalendarProperties;

namespace ICalendarActivities
{
    public class SendEmailMsdn : Activity
    {
        public static readonly DependencyProperty SubjectProperty =
            DependencyProperty.Register("Subject", typeof(string), typeof(SendEmailMsdn));


        public static readonly DependencyProperty AttendeeProperty =
        DependencyProperty.Register("Attendee", typeof(Attendee), typeof(SendEmailMsdn));

        public string Attendee
        {
            get { return base.GetValue(AttendeeProperty) as string; }
            set { base.SetValue(AttendeeProperty, value); }
        }

        public string Subject
        {
            get { return base.GetValue(SubjectProperty) as string; }
            set { base.SetValue(SubjectProperty, value); }
        }

        // Define other properties...

        protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
        {
            // Logic to send the e-mail goes here...
            return ActivityExecutionStatus.Closed;
        }
    }

}
